class PddListModelEntity {
  List<PddListModelData> data;
  int code;
  String msg;

  PddListModelEntity({this.data, this.code, this.msg});

  PddListModelEntity.fromJson(Map<String, dynamic> json) {
    if (json['goods_search_response'] != null) {
      data = new List<PddListModelData>();
      (json['goods_search_response']['goods_list'] as List).forEach((v) {
        data.add(new PddListModelData.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['goods_search_response']['goods_list'] = this.data.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class PddListModelData {
  var  goods_id; //	商品id
  String goods_name; //商品名称
  String goods_thumbnail_url; //	商品缩略图
  var min_group_price; //	最小拼团价（单位为分）
  var min_normal_price; //	最小单买价格（单位为分）
  var coupon_discount; //优惠券面额，单位为分
  var commission; //佣金（单位分）
  var promotion_rate; //佣金比例，千分比
  String sales_tip;//销量

  PddListModelData({
    this.goods_id,
    this.goods_name,
    this.goods_thumbnail_url,
    this.min_group_price,
    this.min_normal_price,
    this.coupon_discount,
    this.commission,
    this.promotion_rate,
    this.sales_tip,
  });

  PddListModelData.fromJson(Map<String, dynamic> json) {
    goods_id = json['goods_id'];
    goods_name = json['goods_name'];
    goods_thumbnail_url = json['goods_thumbnail_url'];
    min_group_price = json['min_group_price'];
    min_normal_price = json['min_normal_price'];
    coupon_discount = json['coupon_discount'];
    commission = json['commission'];
    promotion_rate = json['promotion_rate'];
    sales_tip= json['sales_tip'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['goods_id'] = this.goods_id;
    data['goods_name'] = this.goods_name;
    data['goods_thumbnail_url'] = this.goods_thumbnail_url;
    data['min_group_price'] = this.min_group_price;
    data['min_normal_price'] = this.min_normal_price;
    data['coupon_discount'] = this.coupon_discount;
    data['commission'] = this.commission;
    data['promotion_rate'] = this.promotion_rate;
    data['sales_tip']= this.sales_tip;
    return data;
  }
}
